package com.java2_22_1;

public class Rectangle extends Shape {
    private double length;
    private double wide;

    public Rectangle() {

    }

    public Rectangle(double length, double wide) {
        this.length = length;
        this.wide = wide;
    }

    public double getLength() {
        return length;
    }

    public void setLength(double length) {
        this.length = length;
    }

    public double getWide() {
        return wide;
    }

    public void setWide(double wide) {
        this.wide = wide;
    }

    @Override
    public double getArea() {
        return wide * length;
    }

    @Override
    public double getCircumference() {
        return 2 * (length + wide);
    }
}
